import {
  get,
  post,
  //postForm,
  del,
} from "@/utils/http";
import { Header } from "element-ui";
const packageName = `/back-api`;
/**
 * 获取设备告警分组列表
 */

// 获取设备告警分组列表
export function getDeviceGroupList(params) {
  return get(`${packageName}/deviceGroup/getDeviceGroupList`, params);
}
// 获取设备告警分组
export function getDeviceGroup(params) {
  return get(`${packageName}/deviceGroup/getDeviceGroup`, params);
}
// 删除设备告警分组
export function delDeviceGroup(params) {
  return del(`${packageName}/deviceGroup/delDeviceGroup`, params);
}
// 获取全部设备告警分组
export function getDeviceGroups(params) {
  return get(`${packageName}/deviceGroup/getDeviceGroups`, params);
}
// 保存设备告警分组
export function saveDeviceGroup(params) {
  return post(`${packageName}/deviceGroup/saveDeviceGroup`, params);
}
